<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbejegastoEditDlg" widgetVar="PyfntbejegastoEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbejegastoTitle}">

            <h:form id="PyfntbejegastoEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbejegastoController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_pyfntbejegastoid}" for="pyfntbejegastoid" />
                        <h:outputText id="pyfntbejegastoid" value="#{pyfntbejegastoController.selected.pyfntbejegastoid}" />

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_asignado}" for="asignado" />
                        <p:inputText id="asignado" value="#{pyfntbejegastoController.selected.asignado}" title="#{myBundle.EditPyfntbejegastoTitle_asignado}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_asignado}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_modificado}" for="modificado" />
                        <p:inputText id="modificado" value="#{pyfntbejegastoController.selected.modificado}" title="#{myBundle.EditPyfntbejegastoTitle_modificado}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_modificado}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_vigente}" for="vigente" />
                        <p:inputText id="vigente" value="#{pyfntbejegastoController.selected.vigente}" title="#{myBundle.EditPyfntbejegastoTitle_vigente}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_vigente}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_montocertif}" for="montocertif" />
                        <p:inputText id="montocertif" value="#{pyfntbejegastoController.selected.montocertif}" title="#{myBundle.EditPyfntbejegastoTitle_montocertif}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_montocertif}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_comprometido}" for="comprometido" />
                        <p:inputText id="comprometido" value="#{pyfntbejegastoController.selected.comprometido}" title="#{myBundle.EditPyfntbejegastoTitle_comprometido}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_comprometido}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_devengado}" for="devengado" />
                        <p:inputText id="devengado" value="#{pyfntbejegastoController.selected.devengado}" title="#{myBundle.EditPyfntbejegastoTitle_devengado}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_devengado}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_pagado}" for="pagado" />
                        <p:inputText id="pagado" value="#{pyfntbejegastoController.selected.pagado}" title="#{myBundle.EditPyfntbejegastoTitle_pagado}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_pagado}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_fechacorte}" for="fechacorte" />
                        <p:calendar id="fechacorte" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbejegastoController.selected.fechacorte}" title="#{myBundle.EditPyfntbejegastoTitle_fechacorte}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_fechacorte}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbejegastoController.selected.observaciones}" title="#{myBundle.EditPyfntbejegastoTitle_observaciones}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_observaciones}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_pyfntbpoaprogid}" for="pyfntbpoaprogid" />
                        <p:selectOneMenu id="pyfntbpoaprogid" value="#{pyfntbejegastoController.selected.pyfntbpoaprogid}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_pyfntbpoaprogid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpoaprogController.items}"
                                           var="pyfntbpoaprogidItem"
                                           itemValue="#{pyfntbpoaprogidItem}"
                                           itemLabel="#{pyfntbpoaprogidItem.pyfntbpoaprogid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpoaprogConverter}"/>
                        </p:selectOneMenu>

                        <p:outputLabel value="#{myBundle.EditPyfntbejegastoLabel_pyfntbpartidaid}" for="pyfntbpartidaid" />
                        <p:selectOneMenu id="pyfntbpartidaid" value="#{pyfntbejegastoController.selected.pyfntbpartidaid}" required="true" requiredMessage="#{myBundle.EditPyfntbejegastoRequiredMessage_pyfntbpartidaid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbpartidaController.items}"
                                           var="pyfntbpartidaidItem"
                                           itemValue="#{pyfntbpartidaidItem}"
                                           itemLabel="#{pyfntbpartidaidItem.descripcion.toString()}"
                                           />
                            <f:converter binding="#{pyfntbpartidaConverter}"/>
                        </p:selectOneMenu>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbejegastoController.save}" value="#{myBundle.Save}" update="display,:PyfntbejegastoListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbejegastoEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbejegastoEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
